#include "user_tim.h"
#include "user_usart.h"
#include "ti_msp_dl_config.h"
#include "./encorder/encorder.h"

void SysTick_Handler(void)
{
	sys_tick_inc();
}

void UART0_IRQHandler(void)
{
	debug_usart_rec_handler();
}

void GROUP1_IRQHandler(void)
{
	switch(DL_GPIO_getPendingInterrupt(GPIOB))
    {
		case ENCORDER_RIGHT_PULSE_IIDX:
			r_motor_speed_measure();
			break;
		
		case ENCORDER_LEFT_PULSE_IIDX:
			l_motor_speed_measure();
			break;
		
		default:
			break;
	}
}
